<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>
    <div class="alert alert-error">
      <h4><%= t('global_form_error') %></h4>
      <%= pluralize(@user.errors.count, t("global_form_error")) %><%= t('global_form_prohibited') %>
      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name, size: 40 %>
  </div>
  
  <div class="field">
    <%= f.label :password %><br />
    <%= f.password_field :password, size: 40 %>
  </div>
  <div class="field">
    <%= f.label :password_confirmation %><br />
    <%= f.password_field :password_confirmation, size: 40 %>
  </div>  
    
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
